package com.jxust.vhremployee9092.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jxust.debate.pojo.Employee;
import com.jxust.debate.util.CommonResult;
import com.jxust.debate.util.PageInfo;
import org.springframework.stereotype.Repository;

/**
 * @author tyeerth
 * @date 2020/12/27 - 14:48
 */
@Repository
public interface TestService {
//    List<DemoEntity> getAll();

    CommonResult<String> insertEmployee(Employee employee);

    PageInfo<Employee> getAll(Employee employee,Integer pageNum, Integer pageSize);

    CommonResult<Employee> getEmployeeByUsername(Employee employee);

    CommonResult<IPage<Employee>> selectPageExt(Employee employee, Integer pageNum, Integer pageSize);

    CommonResult<String> registerEmployee(String username, String password);

    Employee getEmployee(String username);

}
